package com.anran.passenger.remote;

import com.anran.common.module.dto.NumberCodeDTO;
import com.anran.common.constant.ApplicationNameConstants;
import com.anran.common.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = ApplicationNameConstants.ONLINE_SERVICE_VERIFICATION_CODE)
public interface OnlineServiceVerificationCodeClient {
    String API_PREFIX = ApplicationNameConstants.ONLINE_SERVICE_VERIFICATION_CODE;

    /**
     * 获取验证码
     */
    @RequestMapping(method = RequestMethod.GET,value = API_PREFIX + "/numberCode/{size}")
    public ResponseResult<NumberCodeDTO> numberCode(@PathVariable("size") int size);


}
